package com.gcq.javawork.service;

import com.gcq.javawork.common.Result;
import com.gcq.javawork.model.domain.Goods;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author guochuqu
* @description 针对表【goods(商品表)】的数据库操作Service
* @createDate 2024-10-16 16:37:51
*/
public interface GoodsService extends IService<Goods> {

    /**
     * 根据商品名称查询商品
     * @param goodsName
     * @return
     */
   List<Goods> searchGoods(String goodsName);


    /**
     * 添加商品
     * @param goods
     * @return
     * */
    void insertGoods(Goods goods);


    /**
     * 更新商品
     * @param goods
     * @return
     */
    void updateGoods(Goods goods);


    /**
     * 删除商品
     * @param goodsId
     * @return
     */
    Boolean deleteGoods(Long goodsId);

}
